package br.com.salao.bean;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="habilidades")
public class Habilidades implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue	(strategy = GenerationType.AUTO)
	private int id;
	private Funcionario funcionario;
	
	@OneToMany
	private Set<Servicos> servicos = new HashSet<Servicos>();
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public Funcionario getFuncionario() {
		return funcionario;
	}
	
	public void setFuncionario(Funcionario funcionario) {
		this.funcionario = funcionario;
	}

	public Set<Servicos> getServicos() {
		return servicos;
	}

	public void setServicos(Set<Servicos> servicos) {
		this.servicos = servicos;
	}

}
